package com.abc.service.impl;

import com.abc.dao.UserMapper;
import com.abc.model.TUser;
import com.abc.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, TUser> implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Cacheable
    @Override
    public TUser findByName(String name) {
        return userMapper.findByName(name);
    }

}
